﻿using System;
using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Admin.NET.Core;
using System.Collections.Generic;

namespace Admin.NET.Application.Entity
{
    /// <summary>
    /// 
    /// </summary>
    [SugarTable("car_case","")]
    [Tenant("1300000000001")]
    public class car_case  : EntityBase
    {
        /// <summary>
        /// 租户Id
        /// </summary>
        [SugarColumn(ColumnDescription = "租户Id")]
        public long? TenantId { get; set; }
        /// <summary>
        /// 车型id
        /// </summary>
        [SugarColumn(ColumnDescription = "车型id")]
        public long carid { get; set; }
        /// <summary>
        /// 图集
        /// </summary>
        [SugarColumn(ColumnDescription = "图集", Length = 255)]
        public string imageurls { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
 
        [SugarColumn(ColumnDescription = "封面图", Length = 255)]
        public string coverurl { get; set; }
        /// <summary>
        /// 点击次数
        /// </summary>
 
        [SugarColumn(ColumnDescription = "点击次数")]
        public long clickCount { get; set; }
        /// <summary>
        /// 颜色id
        /// </summary>
    
        [SugarColumn(ColumnDescription = "颜色id")]
        public long colorId { get; set; }
        /// <summary>
        /// 质感id
        /// </summary>
 
        [SugarColumn(ColumnDescription = "质感id")]
        public long zhiganId { get; set; }
        /// <summary>
        /// 系列id
        /// </summary>
  
        [SugarColumn(ColumnDescription = "系列id")]
        public long xilieId { get; set; }
        /// <summary>
        /// 案例标题
        /// </summary>
    
        [SugarColumn(ColumnDescription = "案例标题", Length = 255)]
        public string title { get; set; }
        /// <summary>
        /// 系列id
        /// </summary>
 
        [SugarColumn(ColumnDescription = "系列id")]
        public long xilieSubId { get; set; }
        /// <summary>
        /// 色系id
        /// </summary>
   
        [SugarColumn(ColumnDescription = "色系id")]
        public long sexiId { get; set; }

        //用例1：正常一对多
        [Navigate(NavigateType.OneToMany, nameof(car_tagmap.caseid))]//BookA表中的studenId
        public List<car_tagmap> tags { get; set; }//注意禁止给books手动赋值
    }
}